package com.seasonsfood.mall.service.dispatch.mapper;

import com.seasonsfood.mall.service.dispatch.api.domain.DispSite;
import com.seasonsfood.mall.service.dispatch.api.model.DispSiteResp;
import com.seasonsfood.mall.service.dispatch.api.param.DispSiteRequest;
import com.seasonsfood.mall.service.dispatch.api.param.RecentCellAndSort;
import com.seasonsfood.mall.service.dispatch.api.param.StreetAndSite;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DispSiteMapper extends Mapper<DispSite> {

    List<DispSite> getSiteListByStreetId(Long id);


    List<DispSiteResp> listModelSiteList(DispSiteRequest request);


    List<StreetAndSite> findSiteLocation(String siteName);


    //查找当前线路下与添加小区距离最近的小区
    RecentCellAndSort selectSiteByLngAndLat(@Param("circuitId") Long circuitId, @Param("lng") double lng, @Param("lat") double lat);
}
